<?php error_reporting(0) ?>
<input 
    type="hidden" 
    value="<?php echo $item->data_id ?>" 
    id="data_id" name="data_id"
    />
<form id="_form_edit_panel" name="_form_edit_panel" 
      action="" method="POST" onsubmit="return false;"
      target="integration_asynchronous" autocomplete="off">
    <div class="widget- row-fluid">
        <div class="well form-horizontal" style="border:none">

            <div class="control-group">
                <label class="control-label">Title :</label>
                <div class="controls">
                    <input type="text" 
                           class="span12 validate[required]"
                           data-prompt-position="topLeft:-1,-5"
                           id="data_title" name="data_title" 
                           value="<?php echo quotes_to_entities($item->data_title) ?>"
                           />
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">Link :</label>
                <div class="controls">
                    <input type="text" 
                           class="span12 "
                           data-prompt-position="topLeft:-1,-5"
                           id="data_link" name="data_link" 
                           value="<?php echo quotes_to_entities($item->data_link) ?>"
                           />
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">Thumb :</label>
                <div class="controls">
                    <input type="text" 
                           class="span12 validate[required]"
                           data-prompt-position="topLeft:-1,-5"
                           id="data_source" name="data_source" 
                           value="<?php echo quotes_to_entities($item->data_source) ?>"
                           />
                    <i class="icon-picture field-icon" style="cursor:pointer" 
                       onclick="BrowseServer('#data_source')"
                       title="CHOOSE IMAGE"></i>
                </div>
            </div>
            <input type="hidden" name="data_type" id="data_type" 
                   value="<?php echo!empty($item->data_type) ? quotes_to_entities($item->data_type) : $type ?>"/>

            <div class="control-group">
                <label class="control-label">Desc :</label>
                <div class="controls">
                    <textarea 
                        rows="1"
                        id="data_desc" name="data_desc" class="span12"
                        ><?php echo quotes_to_entities($item->data_desc) ?></textarea>

                </div>
            </div>
            <div class="control-group">
                <label class="control-label">&nbsp;</label>
                <div class="controls">
                    <div class="span6">
                        <div>POSITION</div>
                        <input type="number" 
                               class="span12"
                               id="data_position" name="data_position" 
                               value="<?php echo $item->data_position ?>"
                               />
                    </div>
                    <div class="span6">
                        <div>STATUS</div>
                        <select id="data_status" name="data_status" class=" span12">
                            <option value="true" <?php if ($item->data_status != 'false') echo 'selected=1' ?>>ENABLE</option>
                            <option value="false">DISABLE</option>
                        </select>

                    </div>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">&nbsp;</label>
                <div class="controls">
                    <div>
                        <?php if (!empty($item->type_insert)) echo "Created  : $item->type_insert" ?>
                    </div>
                    <div>
                        <?php if (!empty($item->type_insert)) echo "Modified : $item->type_insert" ?>
                    </div>
                </div>
            </div>

        </div>
    </div>

</form>